export const tableOption = {
  labelPosition: "right",
  labelSuffix: "：",
  labelWidth: 120,
  gutter: 0,
  menuBtn: true,
  align: "center",
  submitBtn: true,
  stripe: true,
  submitText: "提交",
  emptyBtn: true,
  emptyText: "清空",
  menuPosition: "center",
  border: true,
  index: true,
  indexLabel: "序号",
  editBtn: false,
  delBtn: false,
  menuWidth: 150,
  /*  dialogDirection: 'rtl', //表格弹窗打开方向  rtl/ltr/ttb/tbb
  dialogType: 'drawer',//表格弹窗方式  dialog/drawer*/
  searchMenuSpan: 8,
  searchEnter: true,
  dialogMenuPosition: "center",
  column: [
    {
      type: "select",
      label: "工序类别",
      span: 12,
      display: true,
      prop: "name",
      width: 120,
      required: true,
      rules: [
        {
          required: true,
          message: "工序类别不能为空",
        },
      ],
      dicUrl: "/admin-api/system/dict-data/type?type=process_category",
      props: {
        label: "label",
        value: "value",
      },
      dicMethod: "get",
      order: 5,
    },
    {
      type: "input",
      label: "工序名称",
      span: 12,
      width: 120,
      display: true,
      prop: "processName",
      required: true,
      rules: [
        {
          required: true,
          message: "工序名称不能为空",
        },
      ],
      search: true,
      searchLabelWidth: 100,
      order: 4,
    },
    {
      type: "select",
      label: "所属工段",
      span: 12,
      display: true,
      width: 120,
      prop: "workshopSection",
      required: true,
      rules: [
        {
          required: true,
          message: "所属工段不能为空",
        },
      ],
      search: true,
      searchLabelWidth: 100,
      dicUrl: "/admin-api/system/dict-data/type?type=workshop_section",
      props: {
        label: "label",
        value: "value",
      },
      dicMethod: "get",
      order: 3,
    },
    {
      label: "不良类别",
      prop: "badItem",
      type: "select",
      multiple: true,
      placeholder: "请输入不良项目",
      overHidden: true,
      dicUrl: "/admin-api/o3-pfoc/badcategory/getBadCategoryList",
      props: {
        label: "badName",
        value: "badName",
      },
      dicMethod: "get",
      order: 1,
      dataType: "string",
    },
    {
      label: "报废类别",
      prop: "scrapItem",
      type: "select",
      multiple: true,
      placeholder: "请输入报废项目",
      overHidden: true,
      dicUrl: "/admin-api/o3-pfoc/scraplibrary/getScrapLibraryList",
      props: {
        label: "scrapName",
        value: "scrapName",
      },
      dicMethod: "get",
      order: 1,
      dataType: "string",
    },
    {
      type: "number",
      label: "工序顺序",
      span: 12,
      display: true,
      prop: "sortOrder",
      controls: true,
      required: true,
      width: 80,
      min: 0,
      order: 2,
      rules: [
        {
          required: true,
          message: "排序不能为空",
        },
      ],
    },
    {
      prop: "createBy",
      span: 12,
      type: "input",
      label: "创建人",
      dicUrl: "/admin/user/getAllUser",
      props: {
        label: "name",
        value: "username",
      },
      dicMethod: "get",
      display: false,
      hide: false,
      width: 100,
    },
    {
      prop: "createTime",
      span: 12,
      width: 150,
      type: "datetime",
      label: "创建时间",
      format: "yyyy-MM-dd HH:mm:ss",
      display: false,
      hide: false,
      valueFormat: "yyyy-MM-dd HH:mm:ss",
    },
  ],
};
